home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 August: Tool Chest / Apple_Developer_Group_August_1996_Tool_Chest.iso / Sample Code / Interapplication Communication / MenuScripter 3.1 / Sources / MSUtils.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-11-20  |  1.7 KB  |  79 lines  |  [TEXT/MPS ]

  1. /*
  2.     MSUtils.h
  3.     
  4.     Version 3.1
  5.     
  6.     Copyright © 1995 Apple Computer, Inc., all rights reserved.
  7.     
  8.     MenuScripter by Nigel Humphreys and Jon Lansdell
  9.     AppleEvent to script extensions by Greg Sutton
  10. */
  11.  
  12. #ifndef __MSUTILS__
  13. #define __MSUTILS__
  14.  
  15. #include <Types.h>
  16. #include <Quickdraw.h>
  17. #include <Packages.h>
  18. #include <GestaltEqu.h>
  19. #include <Printing.h>
  20.  
  21. #ifndef __MSGLOBALS__
  22. #include "MSGlobals.h"
  23. #endif
  24.  
  25. pascal Boolean GestaltAvailable();
  26.  
  27. pascal Boolean CheckEnvironment();
  28.  
  29. pascal void ShowError(Str255 theError,
  30.                       long   theErrorCode);
  31.  
  32. pascal Boolean FeatureIsImplemented(OSType theFeature,
  33.                                     short  theTestBit);
  34.  
  35. pascal void GetTempFileName(DPtr   aDoc,
  36.                             Str255 newString);
  37.  
  38. pascal Boolean Ours(WindowPtr aWindow);
  39.  
  40. pascal void SetShortMenus();
  41.  
  42. pascal void SetLongMenus();
  43.  
  44. pascal void SetStyleMenu(DPtr theDoc);
  45.  
  46. pascal void SetFontMenu(DPtr theDoc);
  47.  
  48. pascal void SetEditMenu(DPtr theDoc);
  49.  
  50. pascal void AdornDefaultButton(DialogPtr theDialog, short theItem);
  51.  
  52. pascal void DrawDefaultOutline(DialogPtr theDialog, short theItem);
  53.  
  54. pascal void RetrieveText(DialogPtr aDialog,
  55.                                                short     anItem,
  56.                                                Str255    aString);
  57.  
  58. pascal void SetText( DialogPtr aDialog,
  59.                                          short     itemNo,
  60.                                          Str255    theString);
  61.  
  62. pascal void GetRectOfDialogItem(DialogPtr theDialog, short theItem, Rect *theRect);
  63.  
  64. /*changed for 7.0 and Outline Fonts*/
  65.  
  66. pascal void SetSizeMenu(DPtr theDoc);
  67.  
  68. pascal long LesserOf(long A, long B);
  69.  
  70. pascal long GreaterOf(long A, long B);
  71.         
  72. pascal Boolean DoPageSetup(DPtr theDoc);
  73.  
  74. pascal Boolean CtrlKeyPressed(const EventRecord *theEvent);
  75.  
  76. pascal Boolean OptionKeyPressed(const EventRecord *theEvent);
  77.  
  78. #endif
  79.